package com.legolas.springcloud.springcloudprovider.controller;

import com.legolas.springcloud.springcloudprovider.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author legolas
 * @date 2019/6/4 20:21
 */
@RestController
public class TestController {

    @Autowired
    TestService testService;

    @RequestMapping("test1/{name}")
    public String test1(@PathVariable String name) {
        return testService.test1(name);
    }

}
